﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using ScatSystem.Models;

namespace ScatSystem.Controllers
{
    // studentid = 0 是管理员 admin/admin
    [Route("api/[controller]")]
    [ApiController]
    public class AdminController : ControllerBase
    {
        // 获取全部Student 查看填写详情
        [HttpPost("GetStudentList")]
        public ActionResult<List<Student>> GetStudentList()
        {
            throw new NotImplementedException();
        }

        // 学生增删查改
        [HttpPost("GetStudent")]
        public ActionResult<Student> GetStudent()
        {
            throw new NotImplementedException();
        }

        [HttpPost("AddStudent")]
        public ActionResult<String> AddStudent([FromBody] Student student)
        {
            throw new NotImplementedException();
        }

        [HttpPost("DeleteStudent")]
        public ActionResult<String> DeleteStudent([FromBody] Student student)
        {
            throw new NotImplementedException();
        }

        [HttpPost("UpdateStudent")]
        public ActionResult<String> UpdateStudent([FromBody] Student student)
        {
            throw new NotImplementedException();
        }

        // 获取全部Task 查看填写详情
        [HttpPost("GetTaskList")]
        public ActionResult<List<Models.Task>> GetTaskList()
        {
            throw new NotImplementedException();
        }

        // 查看单个Task任务明细，修改也是这个
        [HttpPost("GetTask")]
        public ActionResult<Models.Task> GetTask([FromBody] Models.Task task)
        {
            throw new NotImplementedException();
        }

        // 保存Task
        [HttpPost("SaveTask")]
        public ActionResult<Models.Task> SaveTask([FromBody] Models.Task task)
        {
            throw new NotImplementedException();
        }

        // 提交Task
        [HttpPost("CommitTask")]
        public ActionResult<Models.Task> CommitTask([FromBody] Models.Task task)
        {
            throw new NotImplementedException();
        }

        // 发布Task
        [HttpPost("ReleaseTask")]
        public ActionResult<Models.Task> ReleaseTask([FromBody] Models.Task task)
        {
            throw new NotImplementedException();
        }

        // 延期Task
        [HttpPost("PostponeTask")]
        public ActionResult<Models.Task> PostponeTask([FromBody] Models.Task task)
        {
            throw new NotImplementedException();
        }

        // 查看所有消息,studentid = 0 是管理员
        [HttpPost("GetMessageList")]
        public ActionResult<List<Message>> GetMessageList([FromBody] Student student)
        {
            throw new NotImplementedException();
        }
    }
}
